<?php

namespace app\index\controller;

use app\index\model\Config as ConfigModel;
use think\Controller;
use think\Request;
use app\index\model\Banner as BannerModel;

class About extends BaseController
{
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $banner = BannerModel::getBanner('about');
        $this->assign('banner', $banner);
    }
    /**
     * 集团简介
     * @return mixed
     */
   public function profile()
   {
       $profile = ConfigModel::getBaseValue('profile');
       $profile = $this->changeResponse($profile);
       $this->assign('profile', $profile);
       return $this->fetch('about_profile');
   }

    /**
     * 集团历程
     * @return mixed
     */
   public function history()
   {
       $history = ConfigModel::getBaseValue('history');
       $history = $this->changeResponse($history);
       $this->assign('history', $history);
       return $this->fetch('about_history');
   }

    /**
     * 创始人团队
     * @return mixed
     */
    public function team()
    {
        return $this->fetch('about_team');
    }

    /**
     * 集团理念
     * @return mixed
     */
    public function philosophy()
    {
        $philosophy = ConfigModel::getBaseValue('about_philosophy');
        $philosophy = $this->changeResponse($philosophy);
        $this->assign('philosophy', $philosophy);
        return $this->fetch('about_philosophy');
    }
}
